package cn.demographic.service;

import javax.servlet.http.HttpSession;

import cn.demographic.entity.Employment;
import cn.demographic.entity.Family;
import cn.demographic.entity.Landlord;
import cn.demographic.entity.Live;
import cn.demographic.entity.Livinginformation;
import cn.demographic.entity.Marriage;
import cn.demographic.entity.Spouse;
import cn.demographic.entity.User;

/**
 * 插入数据
 * @author Administrator
 *
 */
public interface PersonalInformationService {
	
	/**
	 * 添加个人信息+地址信息添加
	 * @param user
	 * @param live
	 * @return
	 */
	Integer addPersonal(User user,Live live,Live live2);
	
	/**
	 * 添加就业信息
	 * @param employment
	 * @param live
	 * @param session
	 * @return
	 */
	Integer addemployment(Employment employment,Live live);
	
	/**
	 * 添加计生信息表
	 * @param record
	 * @return
	 */
    int insertSelective(Marriage record);
    
    /**
      *添加配偶信息
     * @param record
     * @return
     */
    int insertSelective(Spouse record,Live live);
    
    /**
     * 添加同住家庭成员信息
     * @param family
     * @return
     */
    int insertFamily(Integer [] betweenId,String [] citizenship,String[] name,Integer[] gender,String[] birth,Integer[] certificate,Integer [] thisCity,Family family);
    
   /**
    * 添加居住信息
    * @param livinginformation
    * @param landlord
    * @param live
    * @param session
    * @return
    */
    void addliveinfo(Livinginformation livinginformation,Landlord landlord, Live live, HttpSession session);
}
